package io.renren.entity;

import java.io.Serializable;
import java.util.Date;

	 
	 
	 
	 
	 
	 
	 
	 
	 
	 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.renren.utils.CustomJsonDateDeserializer;
import io.renren.utils.CustomJsonDateSerializer;


/**
 * 微信菜单
 * 
 * @author zk
 * @email zk13899@163.com
 * @date 2017-07-21 15:22:07
 */
public class WeixinMenu implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//$column.comments
	private Integer id;
	//名称
	private String name;
	//上级id
	private String parentid;
	//类型
	private String type;
	//key
	private String key;
	//url
	private String url;
	//菜单排序
	private Integer sequence;
	//状态
	private Integer status;

	//创建时间
	private Date createtime;
	
	private String parentName;

	/**
	 * 设置：${column.comments}
	 */
	  	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：${column.comments}
	 */
	   	public Integer getId() {
		return id;
	}
	/**
	 * 设置：名称
	 */
	  	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：名称
	 */
	   	public String getName() {
		return name;
	}
	/**
	 * 设置：上级id
	 */
	  	public void setParentid(String parentid) {
		this.parentid = parentid;
	}
	/**
	 * 获取：上级id
	 */
	   	public String getParentid() {
		return parentid;
	}
	/**
	 * 设置：类型
	 */
	  	public void setType(String type) {
		this.type = type;
	}
	/**
	 * 获取：类型
	 */
	   	public String getType() {
		return type;
	}
	/**
	 * 设置：key
	 */
	  	public void setKey(String key) {
		this.key = key;
	}
	/**
	 * 获取：key
	 */
	   	public String getKey() {
		return key;
	}
	/**
	 * 设置：url
	 */
	  	public void setUrl(String url) {
		this.url = url;
	}
	/**
	 * 获取：url
	 */
	   	public String getUrl() {
		return url;
	}
	/**
	 * 设置：菜单排序
	 */
	  	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}
	/**
	 * 获取：菜单排序
	 */
	   	public Integer getSequence() {
		return sequence;
	}
	/**
	 * 设置：状态
	 */
	  	public void setStatus(Integer status) {
		this.status = status;
	}
	/**
	 * 获取：状态
	 */
	   	public Integer getStatus() {
		return status;
	}

	/**
	 * 设置：创建时间
	 */
	  	 @JsonDeserialize(using = CustomJsonDateDeserializer.class) 
	 	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	/**
	 * 获取：创建时间
	 */
	   	 @JsonSerialize(using = CustomJsonDateSerializer.class)
	 	public Date getCreatetime() {
		return createtime;
	}
	public String getParentName() {
		return parentName;
	}
	public void setParentName(String parentName) {
		this.parentName = parentName;
	}
	   	 
}
